package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_transport")
@Schema(name = "TzTransport", description = "")
public class TzTransport implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "运费模板id")
    @TableId(value = "transport_id", type = IdType.AUTO)
    private Long transportId;

    @Schema(description = "运费模板名称")
    @TableField("trans_name")
    private String transName;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "收费方式（0 按件数,1 按重量 2 按体积）")
    @TableField("charge_type")
    private Byte chargeType;

    @Schema(description = "是否包邮 0:不包邮 1:包邮")
    @TableField("is_free_fee")
    private Byte isFreeFee;

    @Schema(description = "是否含有包邮条件 0 否 1是")
    @TableField("has_free_condition")
    private Byte hasFreeCondition;
}
